﻿using MyCode.Project.Infrastructure.Enumeration;
using System;

namespace MyCode.Project.Domain.Businesses.BillKeeping
{
    /// <summary>
    /// 会员服务数量记账 数据传输对象
    /// </summary>
    public class MemberServiceBookBillKeepingDto
    {
        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberId { get; set; }

        /// <summary>
        /// 商家ID
        /// </summary>
        public Guid MerchantId { get; set; }

        /// <summary>
        /// 加盟商/null为公司
        /// </summary>
        public Guid? CustomerId { get; set; }

        /// <summary>
        /// 发生操作方向
        /// </summary>
        public DirectFlag DirectFlag { get; set; }

        /// <summary>
        /// 发生数
        /// </summary>
        public int AccValue { get; set; }

        /// <summary>
        /// 业务单号
        /// </summary>
        public string Sheet { get; set; }

        /// <summary>
        /// 业务ID
        /// </summary>
        public Guid SheetId { get; set; }

        /// <summary>
        /// 服务ID
        /// </summary>
        public Guid ServiceId { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public int SheetType { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Note { get; set; }

        /// <summary>
        /// 业务发生时间
        /// </summary>
        public DateTime SheetTime { get; set; }
        /// <summary>
        /// 店铺ID，发消息和记录次数来源时用
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 店员ID，发送消息是用
        /// </summary>
        public Guid? ClerkId { get; set; }


        /// <summary>
        /// Desc:项目类型。0=商品；1=服务；2=套餐,3=卡券 , 4=自定义套餐
        /// Default:
        /// Nullable:False
        /// </summary>           
        public int? ItemType { get; set; }

        /// <summary>
        /// 是否允许跨店计算余额  0=不允许  1=允许
        /// </summary>
        public int IfAllShop { get; set; }



    }
}
